package com.atwl.school_system.mapping;

import com.atwl.school_system.bean.ProInfo;
import com.atwl.school_system.bean.vo.ProInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ProDao {

    List<ProInfo> getProInfo(@Param("id") String id, @Param("category") String category, @Param("sort") String sort);

    List<ProInfo> getProInfoAll();

    void upPro(@Param("name") String proName, @Param("price") Double proPrice, @Param("category") Integer category, @Param("url") String s, @Param("upTime") Date date);

    List<ProInfo> searchForName(@Param("keyname") String keyname, @Param("keynum") Integer num);

    void deleteProduct(@Param("id") String pid);

    List<ProInfo> getProHot(@Param("num") Integer lim);

    ProInfo getProInfoById(@Param("id") Integer proId);
}
